<template>
    <div class="ui-box">
        <div class="box-title ui-v-a">
            <span>{{cardInfo.title}}</span>

            <div class="ui-more" i-tap="goto(#/productList/category=56fdf94abe32e20c27f57f52)">
                <span>更多</span>
            </div>
        </div>
        <div class="ui-c-f">
            <div v-for="val of items" class="item" i-tap="goto(#/productDetail/{{val._id}})">
                <div>
                    <img :src="val.pic+'?imageView2/2/w/200'">

                    <p class="ui-v-a"><span>{{val.title}}</span></p>
                    <span class="ui-price price-red">{{val.price/10}}</span>
                </div>
            </div>
        </div>
    </div>
</template>

<script>

    export default{
        props:['cardInfo','items'],
        activate:function(done){
            console.log(this.cardInfo);
            done();
        }
    }
</script>

<style scoped>
</style>